<h1>New comenta</h1>

<% form_for(@comenta) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :comment %><br />
    <%= f.text_field :comment %>
  </p>

    <%= f.hidden_field :events_id, :value => @event.id %>

  <p>
    
    <%= f.hidden_field :dates, :value => Time.now %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', comentas_path %>